#ifndef _ROOM_H
#define _ROOM_H

struct roomnode 
{
	int roomId;
	char name[15];
	int price;
	int discount;		//0 narmal;1 free	
	int cashPledge;
	int status;			//0 empty;1 not empty;2 not clear;3 clearing
	
	struct roomnode *next;
};
typedef struct roomnode Room;
/**
 *restore all room information from room.txt to room list pointer
 *return :
 *		success: room list head pointer 
 *		failure: NULL
 */
Room *read_room();

int display_room(Room *head);

int write_room(Room *r);

int write_room_all(Room *r);

int remove_room();

void backup_room();

int free_room();

int exchange_room();

int keep_room();

int change_room();  //I use it change room information

int add_room();

int find_room();

int show_room();

int display_nclean_room();

void confirm_room_clean();

int recept_find_room();	

int check_in();
int order_in();

#endif 